package com.ulook.lookplanet.data.repository;

import com.ulook.lookplanet.data.source.PubDataSource;
import com.ulook.lookplanet.ui.square.pub.PubArticleInfo;
import com.ulook.lookplanet.util.net.ResponseCallback;

import java.io.File;
import java.util.List;

/**
 * 描述：
 *
 * @author L1998
 * @data 2021/4/6
 */
public class PubRepository {

    private static volatile PubRepository instance;
    private PubDataSource dataSource;

    private PubRepository(PubDataSource dataSource){
        this.dataSource = dataSource;
    }

    public static PubRepository getInstance(){
        if(instance == null){
            instance = new PubRepository(new PubDataSource());
        }
        return instance;
    }



    public void pub(PubArticleInfo pubArticleInfo, ResponseCallback callback){
        dataSource.pub(pubArticleInfo, callback);
    }
}
